Skip to content

Conversation

IbrahimHd
Copy link

code has been implemented to support template files:
<div bind-html-compile template-url="data.templateUrl"></div>
knowing that both attributes still work together:
<div bind-html-compile="data.content" template-url="data.templateUrl"></div>

attribute: template-url="'myTemplateUrl'"
attribute: template-url="'myTemplateUrl'"
attribute: template-url="'myTemplateUrl'"
attribute: template-url="'myTemplateUrl'"
attribute: template-url="'myTemplateUrl'"
attribute: template-url="'myTemplateUrl'"
README.md Outdated
This repo contains a bower package that provides an angular directive which can be passed trusted html with angular template content to evaluate.

The `bind-html-compile` directive allows for HTML containing directives to be compiled.
The `bind-html-compile` directive allows for HTML containing **custom** directives to be compiled.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that this change is needed, since it doesn't matter if these are custom or angular core directives

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"custom" taken out

README.md Outdated
```

If the `data.content` contained a directive, it would not be compiled.
(Unlike the standard `ng-bind-html`, `bind-html-compile` compiles directives, and even those custom ones.)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again adding the information about "custom directives" is probably too much

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"custom" taken out

@wytrych
Copy link
Collaborator

wytrych commented Dec 5, 2016

Could you please add more meaningful names to your commits?

@IbrahimHd
Copy link
Author

Sorry for the misleading about my several commits. Actually the other repeated ones were only to fix the styling warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants